package com.memorypalace.pojo;

import java.util.Date;

import com.google.gson.Gson;

public class CardStudyRecord {

	private String cardId;//卡片Id   外键
	private Date studyTime;//学习时间
	private Integer answerButton;//回答选择
	private Integer costSeconds;//花费时间
	private String cardStudyRecordId;//卡片学习记录id 主键
	private StudyInterval studyInterval;// 学习间隔
	private String studyInterval_json;
	private String studyListId;
	private Boolean isNew;
	
	private String userId;
	public CardStudyRecord(){}
	
	



	

	public StudyInterval getStudyInterval() {
		return studyInterval;
	}

	public void setStudyInterval(StudyInterval studyInterval) {
		this.studyInterval = studyInterval;
		Gson gson=new Gson();
		this.studyInterval_json=gson.toJson(studyInterval);
		System.out.println("studyInterval_json:"+studyInterval_json);
	}


	public void setStudyInterval_json(String studyInterval_json) {
		this.studyInterval_json = studyInterval_json;
		Gson gson=new Gson();
		this.studyInterval=gson.fromJson(studyInterval_json,StudyInterval.class);
	}
	public String getCardId() {
		return cardId;
	}
	public void setCardId(String cardId) {
		this.cardId = cardId;
	}
	public Date getStudyTime() {
		return studyTime;
	}
	public void setStudyTime(Date studyTime) {
		this.studyTime = studyTime;
	}

	public Integer getAnswerButton() {
		return answerButton;
	}
	public void setAnswerButton(Integer answerButton) {
		this.answerButton = answerButton;
	}
	public Integer getCostSeconds() {
		return costSeconds;
	}
	public void setCostSeconds(Integer costSeconds) {
		this.costSeconds = costSeconds;
	}
	public String getCardStudyRecordId() {
		return cardStudyRecordId;
	}
	public void setCardStudyRecordId(String cardStudyRecordId) {
		this.cardStudyRecordId = cardStudyRecordId;
	}







	public String getUserId() {
		return userId;
	}







	public void setUserId(String userId) {
		this.userId = userId;
	}







	public String getStudyListId() {
		return studyListId;
	}







	public void setStudyListId(String studyListId) {
		this.studyListId = studyListId;
	}







	public Boolean getIsNew() {
		return isNew;
	}







	public void setIsNew(Boolean isNew) {
		this.isNew = isNew;
	}

}
